<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/imageFormat.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('imageFormat_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">imageFormat.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="imageFormat_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __IMAGE_FORMAT_H_</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __IMAGE_FORMAT_H_</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// include vector types (float4, float3, uchar4, uchar3, ect.)</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="cudaUtility_8h.html">cudaUtility.h</a>&quot;</span>                </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">   49</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="comment">// RGB</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a7e08074dcdc25f156e92c233807b048f">   52</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a7e08074dcdc25f156e92c233807b048f">IMAGE_RGB8</a>=0,                                   </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406aa36c106df206651efeeba8c7c1e7bddc">   53</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406aa36c106df206651efeeba8c7c1e7bddc">IMAGE_RGBA8</a>,                                    </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9fd17a87f744486a238f2a7daf4143da">   54</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9fd17a87f744486a238f2a7daf4143da">IMAGE_RGB32F</a>,                                   </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9396c3fdae6987bbf4abc2b2e63e3815">   55</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9396c3fdae6987bbf4abc2b2e63e3815">IMAGE_RGBA32F</a>,                                  </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="comment">// BGR</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a81b5ebf9d84207d7400c60194b59196e">   58</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a81b5ebf9d84207d7400c60194b59196e">IMAGE_BGR8</a>,                                     </div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406acc6673d036d0aa620ad0a00a2b91a290">   59</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406acc6673d036d0aa620ad0a00a2b91a290">IMAGE_BGRA8</a>,                                    </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a940ed54272dc8e1c1bf14075b2d4dc3d">   60</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a940ed54272dc8e1c1bf14075b2d4dc3d">IMAGE_BGR32F</a>,                                   </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a216e1e9101020aa1dff70f7e8a0dab32">   61</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a216e1e9101020aa1dff70f7e8a0dab32">IMAGE_BGRA32F</a>,                                  </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="comment">// YUV</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a3cf92f3eaec5b2886b11a7d08ab2ee7b">   64</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a3cf92f3eaec5b2886b11a7d08ab2ee7b">IMAGE_YUYV</a>,                                     </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406ac96c45814140e544d9ad4b905d1d0f9a">   65</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406ac96c45814140e544d9ad4b905d1d0f9a">IMAGE_YUY2</a>=<a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a3cf92f3eaec5b2886b11a7d08ab2ee7b">IMAGE_YUYV</a>,                  </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a5f9010b10d5865f2b1d8af2ffcd0b630">   66</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a5f9010b10d5865f2b1d8af2ffcd0b630">IMAGE_YVYU</a>,                                     </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406afac3609232be82b7b33b45a4021e53eb">   67</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406afac3609232be82b7b33b45a4021e53eb">IMAGE_UYVY</a>,                                     </div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406aa59dd3d149443a1a7fc83302c6cd9642">   68</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406aa59dd3d149443a1a7fc83302c6cd9642">IMAGE_I420</a>,                                     </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a803a5323476074e9fe0386152fc49139">   69</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a803a5323476074e9fe0386152fc49139">IMAGE_YV12</a>,                                     </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a71df900ebdabeec1e39ee59f55bf9a96">   70</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a71df900ebdabeec1e39ee59f55bf9a96">IMAGE_NV12</a>,                                     </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="comment">// Bayer</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a5c25062c34b2d7dee20002d4b5d1c136">   73</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a5c25062c34b2d7dee20002d4b5d1c136">IMAGE_BAYER_BGGR</a>,                               </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a427ada330759aaa9016b25a5e759debc">   74</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a427ada330759aaa9016b25a5e759debc">IMAGE_BAYER_GBRG</a>,                               </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a3696a5c9e323042d1330fa07cc871b3d">   75</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a3696a5c9e323042d1330fa07cc871b3d">IMAGE_BAYER_GRBG</a>,                               </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a83927ba3d7be52369555629cd5028b3a">   76</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a83927ba3d7be52369555629cd5028b3a">IMAGE_BAYER_RGGB</a>,                               </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="comment">// grayscale</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a15fa3f6f45c0373bb043300b819d364d">   79</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a15fa3f6f45c0373bb043300b819d364d">IMAGE_GRAY8</a>,                                    </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a34b0b09e48e4d6e7bd6adfed70e30c63">   80</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a34b0b09e48e4d6e7bd6adfed70e30c63">IMAGE_GRAY32F</a>,                                  </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="comment">// extras</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a7ee606cb3797c8f28f8c474517ac770e">   83</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a7ee606cb3797c8f28f8c474517ac770e">IMAGE_COUNT</a>,                                    </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406ac9e52255f1b44bcb0257383d948c3153">   84</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406ac9e52255f1b44bcb0257383d948c3153">IMAGE_UNKNOWN</a>=999,                              </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9c918c02414c3e7aada5a7d6fcf9024b">   85</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9c918c02414c3e7aada5a7d6fcf9024b">IMAGE_DEFAULT</a>=<a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9396c3fdae6987bbf4abc2b2e63e3815">IMAGE_RGBA32F</a>             </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;};</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="group__imageFormat.html#ga1838495803ba134f58e6d439af6811f1">   97</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__imageFormat.html#ga1838495803ba134f58e6d439af6811f1">imageBaseType</a></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;{</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga1838495803ba134f58e6d439af6811f1ac694eb83e35b05c767d18094e76b3491">   99</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga1838495803ba134f58e6d439af6811f1ac694eb83e35b05c767d18094e76b3491">IMAGE_UINT8</a>,</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="group__imageFormat.html#gga1838495803ba134f58e6d439af6811f1a2e82b10a5ddb8c689c3593c15323099c">  100</a></span>&#160;        <a class="code" href="group__imageFormat.html#gga1838495803ba134f58e6d439af6811f1a2e82b10a5ddb8c689c3593c15323099c">IMAGE_FLOAT</a></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;};</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="keyword">inline</span> <a class="code" href="group__imageFormat.html#ga1838495803ba134f58e6d439af6811f1">imageBaseType</a> <a class="code" href="group__imageFormat.html#gaa0224d2f00c1258d2ea1b95a21d5a49d">imageFormatBaseType</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__imageFormat.html#ga2b4c4ed467ca1be0526e8b6dc81ccb1b">imageFormatToStr</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">inline</span> <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> <a class="code" href="group__imageFormat.html#ga9292745783c6ce5d209c2bf5dd02f301">imageFormatFromStr</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* str );</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="group__imageFormat.html#ga95cdbe993bce3c036d4941f2c3913f74">imageFormatChannels</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="group__imageFormat.html#ga48d21d2cc2f8822e13ee6d40e3719ba4">imageFormatDepth</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="group__imageFormat.html#gae8779cdbde4c4543a26a736ef7222fae">imageFormatSize</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format, <span class="keywordtype">size_t</span> width, <span class="keywordtype">size_t</span> height );</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__imageFormat.html#ga08cfd96f1a84b8b583030ab095619b51">imageFormatIsRGB</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__imageFormat.html#gade7534c202b20e289c1cc0b69c66770b">imageFormatIsBGR</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__imageFormat.html#ga339c56a589a78dc7af3666f192423525">imageFormatIsYUV</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__imageFormat.html#ga52426c52d787b1f7525a57aab747ad6c">imageFormatIsGray</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__imageFormat.html#gaf6ccf410de715a19c571887e58f4cee7">imageFormatIsBayer</a>( <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="imageFormat_8h.html#a09a2d0cc8a1dbc68882960eb37d54d41">imageFormatErrorMsg</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* module, <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">function</span>, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format );</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="comment">// get the IMAGE_RGB* formats from uchar3/uchar4/float3/float4</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keyword">inline</span> <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> <a class="code" href="imageFormat_8h.html#a8ae6dc740bb9de0a574a94df4a24b9fe">imageFormatFromType</a>();</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">inline</span> <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> <a class="code" href="imageFormat_8h.html#a439acc005bba9871e549c57a92c3a3b6">imageFormatFromType&lt;uchar3&gt;</a>();</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">inline</span> <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> <a class="code" href="imageFormat_8h.html#ac2dfe76bab231f158eced36d5f3407ef">imageFormatFromType&lt;uchar4&gt;</a>();</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">inline</span> <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> <a class="code" href="imageFormat_8h.html#ab229cbd28f6ad0f947c42db8f2ef9b23">imageFormatFromType&lt;float3&gt;</a>();</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">inline</span> <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> <a class="code" href="imageFormat_8h.html#ae33c32030d9db032a57e0bcd9a87eb2a">imageFormatFromType&lt;float4&gt;</a>();</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; </div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="comment">// templated version of base type / vector type</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="structimageFormatType.html">  229</a></span>&#160;<span class="keyword">template</span>&lt;imageFormat format&gt; <span class="keyword">struct </span><a class="code" href="structimageFormatType.html">imageFormatType</a>;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="structimageFormatType_3_01IMAGE__RGB8_01_4.html#aaf4e61e56fd0ab1be3a6148705fc8770">  231</a></span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">struct </span><a class="code" href="structimageFormatType.html">imageFormatType</a>&lt;<a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a7e08074dcdc25f156e92c233807b048f">IMAGE_RGB8</a>&gt;    { <span class="keyword">typedef</span> uint8_t <a class="code" href="structimageFormatType_3_01IMAGE__RGB8_01_4.html#a1e9ebd00dfe3dcc70b36f9a3d286b3af">Base</a>; <span class="keyword">typedef</span> uchar3 <a class="code" href="structimageFormatType_3_01IMAGE__RGB8_01_4.html#aaf4e61e56fd0ab1be3a6148705fc8770">Vector</a>; };</div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="structimageFormatType_3_01IMAGE__RGBA8_01_4.html#a7363b2d2c80bcc6787a236b6191a7076">  232</a></span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">struct </span><a class="code" href="structimageFormatType.html">imageFormatType</a>&lt;<a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406aa36c106df206651efeeba8c7c1e7bddc">IMAGE_RGBA8</a>&gt;   { <span class="keyword">typedef</span> uint8_t <a class="code" href="structimageFormatType_3_01IMAGE__RGBA8_01_4.html#a9611faf34d864eb78d7b16c2f7a2132e">Base</a>; <span class="keyword">typedef</span> uchar4 <a class="code" href="structimageFormatType_3_01IMAGE__RGBA8_01_4.html#a7363b2d2c80bcc6787a236b6191a7076">Vector</a>; };</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="structimageFormatType_3_01IMAGE__RGB32F_01_4.html#acc0af8fb8c4ee9631c275de17672c786">  234</a></span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">struct </span><a class="code" href="structimageFormatType.html">imageFormatType</a>&lt;<a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9fd17a87f744486a238f2a7daf4143da">IMAGE_RGB32F</a>&gt;  { <span class="keyword">typedef</span> <span class="keywordtype">float</span> <a class="code" href="structimageFormatType_3_01IMAGE__RGB32F_01_4.html#a2fa746dfba44105d95aac6bc56c5cae0">Base</a>; <span class="keyword">typedef</span> float3 <a class="code" href="structimageFormatType_3_01IMAGE__RGB32F_01_4.html#acc0af8fb8c4ee9631c275de17672c786">Vector</a>; };</div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="structimageFormatType_3_01IMAGE__RGBA32F_01_4.html#adfcaa4514589896cf92cb0cac40732d6">  235</a></span>&#160;<span class="keyword">template</span>&lt;&gt; <span class="keyword">struct </span><a class="code" href="structimageFormatType.html">imageFormatType</a>&lt;<a class="code" href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9396c3fdae6987bbf4abc2b2e63e3815">IMAGE_RGBA32F</a>&gt; { <span class="keyword">typedef</span> <span class="keywordtype">float</span> <a class="code" href="structimageFormatType_3_01IMAGE__RGBA32F_01_4.html#a424e3e45f1056673ca27387905b748c5">Base</a>; <span class="keyword">typedef</span> float4 <a class="code" href="structimageFormatType_3_01IMAGE__RGBA32F_01_4.html#adfcaa4514589896cf92cb0cac40732d6">Vector</a>; };</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160; </div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; </div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="comment">// inline implementations</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="preprocessor">#include &quot;imageFormat.inl&quot;</span></div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160; </div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; </div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aimageFormat_8h_html_ae33c32030d9db032a57e0bcd9a87eb2a"><div class="ttname"><a href="imageFormat_8h.html#ae33c32030d9db032a57e0bcd9a87eb2a">imageFormatFromType&lt; float4 &gt;</a></div><div class="ttdeci">imageFormat imageFormatFromType&lt; float4 &gt;()</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a83927ba3d7be52369555629cd5028b3a"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a83927ba3d7be52369555629cd5028b3a">IMAGE_BAYER_RGGB</a></div><div class="ttdeci">@ IMAGE_BAYER_RGGB</div><div class="ttdoc">8-bit Bayer RGGB (‘'bayer-rggb’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:76</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406afac3609232be82b7b33b45a4021e53eb"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406afac3609232be82b7b33b45a4021e53eb">IMAGE_UYVY</a></div><div class="ttdeci">@ IMAGE_UYVY</div><div class="ttdoc">YUV UYVY 4:2:2 packed (‘'uyvy’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:67</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a803a5323476074e9fe0386152fc49139"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a803a5323476074e9fe0386152fc49139">IMAGE_YV12</a></div><div class="ttdeci">@ IMAGE_YV12</div><div class="ttdoc">YUV YV12 4:2:0 planar (‘'yv12’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:69</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a9396c3fdae6987bbf4abc2b2e63e3815"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9396c3fdae6987bbf4abc2b2e63e3815">IMAGE_RGBA32F</a></div><div class="ttdeci">@ IMAGE_RGBA32F</div><div class="ttdoc">float4 RGBA32F (‘'rgba32f’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:55</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a7e08074dcdc25f156e92c233807b048f"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a7e08074dcdc25f156e92c233807b048f">IMAGE_RGB8</a></div><div class="ttdeci">@ IMAGE_RGB8</div><div class="ttdoc">uchar3 RGB8 (‘'rgb8’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:52</div></div>
<div class="ttc" id="aimageFormat_8h_html_a439acc005bba9871e549c57a92c3a3b6"><div class="ttname"><a href="imageFormat_8h.html#a439acc005bba9871e549c57a92c3a3b6">imageFormatFromType&lt; uchar3 &gt;</a></div><div class="ttdeci">imageFormat imageFormatFromType&lt; uchar3 &gt;()</div></div>
<div class="ttc" id="astructimageFormatType_3_01IMAGE__RGB8_01_4_html_aaf4e61e56fd0ab1be3a6148705fc8770"><div class="ttname"><a href="structimageFormatType_3_01IMAGE__RGB8_01_4.html#aaf4e61e56fd0ab1be3a6148705fc8770">imageFormatType&lt; IMAGE_RGB8 &gt;::Vector</a></div><div class="ttdeci">uchar3 Vector</div><div class="ttdef"><b>Definition:</b> imageFormat.h:231</div></div>
<div class="ttc" id="aimageFormat_8h_html_a8ae6dc740bb9de0a574a94df4a24b9fe"><div class="ttname"><a href="imageFormat_8h.html#a8ae6dc740bb9de0a574a94df4a24b9fe">imageFormatFromType</a></div><div class="ttdeci">imageFormat imageFormatFromType()</div></div>
<div class="ttc" id="astructimageFormatType_3_01IMAGE__RGBA8_01_4_html_a7363b2d2c80bcc6787a236b6191a7076"><div class="ttname"><a href="structimageFormatType_3_01IMAGE__RGBA8_01_4.html#a7363b2d2c80bcc6787a236b6191a7076">imageFormatType&lt; IMAGE_RGBA8 &gt;::Vector</a></div><div class="ttdeci">uchar4 Vector</div><div class="ttdef"><b>Definition:</b> imageFormat.h:232</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a15fa3f6f45c0373bb043300b819d364d"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a15fa3f6f45c0373bb043300b819d364d">IMAGE_GRAY8</a></div><div class="ttdeci">@ IMAGE_GRAY8</div><div class="ttdoc">uint8 grayscale (‘'gray8’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:79</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga48d21d2cc2f8822e13ee6d40e3719ba4"><div class="ttname"><a href="group__imageFormat.html#ga48d21d2cc2f8822e13ee6d40e3719ba4">imageFormatDepth</a></div><div class="ttdeci">size_t imageFormatDepth(imageFormat format)</div><div class="ttdoc">Get the pixel bit depth (in bits, not bytes).</div></div>
<div class="ttc" id="acudaUtility_8h_html"><div class="ttname"><a href="cudaUtility_8h.html">cudaUtility.h</a></div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a9c918c02414c3e7aada5a7d6fcf9024b"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9c918c02414c3e7aada5a7d6fcf9024b">IMAGE_DEFAULT</a></div><div class="ttdeci">@ IMAGE_DEFAULT</div><div class="ttdoc">Default format (IMAGE_RGBA32F)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:85</div></div>
<div class="ttc" id="aimageFormat_8h_html_ab229cbd28f6ad0f947c42db8f2ef9b23"><div class="ttname"><a href="imageFormat_8h.html#ab229cbd28f6ad0f947c42db8f2ef9b23">imageFormatFromType&lt; float3 &gt;</a></div><div class="ttdeci">imageFormat imageFormatFromType&lt; float3 &gt;()</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406ac96c45814140e544d9ad4b905d1d0f9a"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406ac96c45814140e544d9ad4b905d1d0f9a">IMAGE_YUY2</a></div><div class="ttdeci">@ IMAGE_YUY2</div><div class="ttdoc">Duplicate of YUYV (‘'yuy2’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:65</div></div>
<div class="ttc" id="agroup__imageFormat_html_gaf6ccf410de715a19c571887e58f4cee7"><div class="ttname"><a href="group__imageFormat.html#gaf6ccf410de715a19c571887e58f4cee7">imageFormatIsBayer</a></div><div class="ttdeci">bool imageFormatIsBayer(imageFormat format)</div><div class="ttdoc">Check if an image format is one of the Bayer formats.</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga1838495803ba134f58e6d439af6811f1ac694eb83e35b05c767d18094e76b3491"><div class="ttname"><a href="group__imageFormat.html#gga1838495803ba134f58e6d439af6811f1ac694eb83e35b05c767d18094e76b3491">IMAGE_UINT8</a></div><div class="ttdeci">@ IMAGE_UINT8</div><div class="ttdef"><b>Definition:</b> imageFormat.h:99</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga1838495803ba134f58e6d439af6811f1"><div class="ttname"><a href="group__imageFormat.html#ga1838495803ba134f58e6d439af6811f1">imageBaseType</a></div><div class="ttdeci">imageBaseType</div><div class="ttdoc">The imageBaseType enum is used to identify the base data type of an imageFormat - either uint8 or flo...</div><div class="ttdef"><b>Definition:</b> imageFormat.h:97</div></div>
<div class="ttc" id="aimageFormat_8h_html_ac2dfe76bab231f158eced36d5f3407ef"><div class="ttname"><a href="imageFormat_8h.html#ac2dfe76bab231f158eced36d5f3407ef">imageFormatFromType&lt; uchar4 &gt;</a></div><div class="ttdeci">imageFormat imageFormatFromType&lt; uchar4 &gt;()</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga08cfd96f1a84b8b583030ab095619b51"><div class="ttname"><a href="group__imageFormat.html#ga08cfd96f1a84b8b583030ab095619b51">imageFormatIsRGB</a></div><div class="ttdeci">bool imageFormatIsRGB(imageFormat format)</div><div class="ttdoc">Check if an image format is one of the RGB/RGBA formats.</div></div>
<div class="ttc" id="aimageFormat_8h_html_a09a2d0cc8a1dbc68882960eb37d54d41"><div class="ttname"><a href="imageFormat_8h.html#a09a2d0cc8a1dbc68882960eb37d54d41">imageFormatErrorMsg</a></div><div class="ttdeci">void imageFormatErrorMsg(const char *module, const char *function, imageFormat format)</div><div class="ttdoc">Print out an error message that the image format isn't supported.</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a34b0b09e48e4d6e7bd6adfed70e30c63"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a34b0b09e48e4d6e7bd6adfed70e30c63">IMAGE_GRAY32F</a></div><div class="ttdeci">@ IMAGE_GRAY32F</div><div class="ttdoc">float grayscale (‘'gray32f’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:80</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga9292745783c6ce5d209c2bf5dd02f301"><div class="ttname"><a href="group__imageFormat.html#ga9292745783c6ce5d209c2bf5dd02f301">imageFormatFromStr</a></div><div class="ttdeci">imageFormat imageFormatFromStr(const char *str)</div><div class="ttdoc">Parse an imageFormat enum from a string.</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga1838495803ba134f58e6d439af6811f1a2e82b10a5ddb8c689c3593c15323099c"><div class="ttname"><a href="group__imageFormat.html#gga1838495803ba134f58e6d439af6811f1a2e82b10a5ddb8c689c3593c15323099c">IMAGE_FLOAT</a></div><div class="ttdeci">@ IMAGE_FLOAT</div><div class="ttdef"><b>Definition:</b> imageFormat.h:100</div></div>
<div class="ttc" id="agroup__imageFormat_html_gade7534c202b20e289c1cc0b69c66770b"><div class="ttname"><a href="group__imageFormat.html#gade7534c202b20e289c1cc0b69c66770b">imageFormatIsBGR</a></div><div class="ttdeci">bool imageFormatIsBGR(imageFormat format)</div><div class="ttdoc">Check if an image format is one of the BGR/BGRA formats.</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga95cdbe993bce3c036d4941f2c3913f74"><div class="ttname"><a href="group__imageFormat.html#ga95cdbe993bce3c036d4941f2c3913f74">imageFormatChannels</a></div><div class="ttdeci">size_t imageFormatChannels(imageFormat format)</div><div class="ttdoc">Get the number of image channels in each format.</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a940ed54272dc8e1c1bf14075b2d4dc3d"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a940ed54272dc8e1c1bf14075b2d4dc3d">IMAGE_BGR32F</a></div><div class="ttdeci">@ IMAGE_BGR32F</div><div class="ttdoc">float3 BGR32F (‘'bgr32f’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:60</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga339c56a589a78dc7af3666f192423525"><div class="ttname"><a href="group__imageFormat.html#ga339c56a589a78dc7af3666f192423525">imageFormatIsYUV</a></div><div class="ttdeci">bool imageFormatIsYUV(imageFormat format)</div><div class="ttdoc">Check if an image format is one of the YUV formats.</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga2b4c4ed467ca1be0526e8b6dc81ccb1b"><div class="ttname"><a href="group__imageFormat.html#ga2b4c4ed467ca1be0526e8b6dc81ccb1b">imageFormatToStr</a></div><div class="ttdeci">const char * imageFormatToStr(imageFormat format)</div><div class="ttdoc">Convert an imageFormat enum to a string.</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a3696a5c9e323042d1330fa07cc871b3d"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a3696a5c9e323042d1330fa07cc871b3d">IMAGE_BAYER_GRBG</a></div><div class="ttdeci">@ IMAGE_BAYER_GRBG</div><div class="ttdoc">8-bit Bayer GRBG (‘'bayer-grbg’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:75</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a81b5ebf9d84207d7400c60194b59196e"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a81b5ebf9d84207d7400c60194b59196e">IMAGE_BGR8</a></div><div class="ttdeci">@ IMAGE_BGR8</div><div class="ttdoc">uchar3 BGR8 (‘'bgr8’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:58</div></div>
<div class="ttc" id="astructimageFormatType_3_01IMAGE__RGBA32F_01_4_html_adfcaa4514589896cf92cb0cac40732d6"><div class="ttname"><a href="structimageFormatType_3_01IMAGE__RGBA32F_01_4.html#adfcaa4514589896cf92cb0cac40732d6">imageFormatType&lt; IMAGE_RGBA32F &gt;::Vector</a></div><div class="ttdeci">float4 Vector</div><div class="ttdef"><b>Definition:</b> imageFormat.h:235</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a5f9010b10d5865f2b1d8af2ffcd0b630"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a5f9010b10d5865f2b1d8af2ffcd0b630">IMAGE_YVYU</a></div><div class="ttdeci">@ IMAGE_YVYU</div><div class="ttdoc">YUV YVYU 4:2:2 packed (‘'yvyu’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:66</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a9fd17a87f744486a238f2a7daf4143da"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a9fd17a87f744486a238f2a7daf4143da">IMAGE_RGB32F</a></div><div class="ttdeci">@ IMAGE_RGB32F</div><div class="ttdoc">float3 RGB32F (‘'rgb32f’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:54</div></div>
<div class="ttc" id="agroup__imageFormat_html_gaa0224d2f00c1258d2ea1b95a21d5a49d"><div class="ttname"><a href="group__imageFormat.html#gaa0224d2f00c1258d2ea1b95a21d5a49d">imageFormatBaseType</a></div><div class="ttdeci">imageBaseType imageFormatBaseType(imageFormat format)</div><div class="ttdoc">Get the base type of an image format (uint8 or float).</div></div>
<div class="ttc" id="astructimageFormatType_3_01IMAGE__RGB32F_01_4_html_a2fa746dfba44105d95aac6bc56c5cae0"><div class="ttname"><a href="structimageFormatType_3_01IMAGE__RGB32F_01_4.html#a2fa746dfba44105d95aac6bc56c5cae0">imageFormatType&lt; IMAGE_RGB32F &gt;::Base</a></div><div class="ttdeci">float Base</div><div class="ttdef"><b>Definition:</b> imageFormat.h:234</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a216e1e9101020aa1dff70f7e8a0dab32"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a216e1e9101020aa1dff70f7e8a0dab32">IMAGE_BGRA32F</a></div><div class="ttdeci">@ IMAGE_BGRA32F</div><div class="ttdoc">float4 BGRA32F (‘'bgra32f’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:61</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a5c25062c34b2d7dee20002d4b5d1c136"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a5c25062c34b2d7dee20002d4b5d1c136">IMAGE_BAYER_BGGR</a></div><div class="ttdeci">@ IMAGE_BAYER_BGGR</div><div class="ttdoc">8-bit Bayer BGGR (‘'bayer-bggr’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:73</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a7ee606cb3797c8f28f8c474517ac770e"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a7ee606cb3797c8f28f8c474517ac770e">IMAGE_COUNT</a></div><div class="ttdeci">@ IMAGE_COUNT</div><div class="ttdoc">The number of image formats.</div><div class="ttdef"><b>Definition:</b> imageFormat.h:83</div></div>
<div class="ttc" id="agroup__imageFormat_html_gae8779cdbde4c4543a26a736ef7222fae"><div class="ttname"><a href="group__imageFormat.html#gae8779cdbde4c4543a26a736ef7222fae">imageFormatSize</a></div><div class="ttdeci">size_t imageFormatSize(imageFormat format, size_t width, size_t height)</div><div class="ttdoc">Compute the size of an image (in bytes)</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a71df900ebdabeec1e39ee59f55bf9a96"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a71df900ebdabeec1e39ee59f55bf9a96">IMAGE_NV12</a></div><div class="ttdeci">@ IMAGE_NV12</div><div class="ttdoc">YUV NV12 4:2:0 planar (‘'nv12’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:70</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a3cf92f3eaec5b2886b11a7d08ab2ee7b"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a3cf92f3eaec5b2886b11a7d08ab2ee7b">IMAGE_YUYV</a></div><div class="ttdeci">@ IMAGE_YUYV</div><div class="ttdoc">YUV YUYV 4:2:2 packed (‘'yuyv’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:64</div></div>
<div class="ttc" id="astructimageFormatType_3_01IMAGE__RGB32F_01_4_html_acc0af8fb8c4ee9631c275de17672c786"><div class="ttname"><a href="structimageFormatType_3_01IMAGE__RGB32F_01_4.html#acc0af8fb8c4ee9631c275de17672c786">imageFormatType&lt; IMAGE_RGB32F &gt;::Vector</a></div><div class="ttdeci">float3 Vector</div><div class="ttdef"><b>Definition:</b> imageFormat.h:234</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406aa59dd3d149443a1a7fc83302c6cd9642"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406aa59dd3d149443a1a7fc83302c6cd9642">IMAGE_I420</a></div><div class="ttdeci">@ IMAGE_I420</div><div class="ttdoc">YUV I420 4:2:0 planar (‘'i420’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:68</div></div>
<div class="ttc" id="astructimageFormatType_html"><div class="ttname"><a href="structimageFormatType.html">imageFormatType</a></div><div class="ttdef"><b>Definition:</b> imageFormat.h:229</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406a427ada330759aaa9016b25a5e759debc"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406a427ada330759aaa9016b25a5e759debc">IMAGE_BAYER_GBRG</a></div><div class="ttdeci">@ IMAGE_BAYER_GBRG</div><div class="ttdoc">8-bit Bayer GBRG (‘'bayer-gbrg’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:74</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga52426c52d787b1f7525a57aab747ad6c"><div class="ttname"><a href="group__imageFormat.html#ga52426c52d787b1f7525a57aab747ad6c">imageFormatIsGray</a></div><div class="ttdeci">bool imageFormatIsGray(imageFormat format)</div><div class="ttdoc">Check if an image format is one of the grayscale formats.</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406aa36c106df206651efeeba8c7c1e7bddc"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406aa36c106df206651efeeba8c7c1e7bddc">IMAGE_RGBA8</a></div><div class="ttdeci">@ IMAGE_RGBA8</div><div class="ttdoc">uchar4 RGBA8 (‘'rgba8’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:53</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406acc6673d036d0aa620ad0a00a2b91a290"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406acc6673d036d0aa620ad0a00a2b91a290">IMAGE_BGRA8</a></div><div class="ttdeci">@ IMAGE_BGRA8</div><div class="ttdoc">uchar4 BGRA8 (‘'bgra8’`)</div><div class="ttdef"><b>Definition:</b> imageFormat.h:59</div></div>
<div class="ttc" id="astructimageFormatType_3_01IMAGE__RGBA8_01_4_html_a9611faf34d864eb78d7b16c2f7a2132e"><div class="ttname"><a href="structimageFormatType_3_01IMAGE__RGBA8_01_4.html#a9611faf34d864eb78d7b16c2f7a2132e">imageFormatType&lt; IMAGE_RGBA8 &gt;::Base</a></div><div class="ttdeci">uint8_t Base</div><div class="ttdef"><b>Definition:</b> imageFormat.h:232</div></div>
<div class="ttc" id="astructimageFormatType_3_01IMAGE__RGBA32F_01_4_html_a424e3e45f1056673ca27387905b748c5"><div class="ttname"><a href="structimageFormatType_3_01IMAGE__RGBA32F_01_4.html#a424e3e45f1056673ca27387905b748c5">imageFormatType&lt; IMAGE_RGBA32F &gt;::Base</a></div><div class="ttdeci">float Base</div><div class="ttdef"><b>Definition:</b> imageFormat.h:235</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga931c48e08f361637d093355d64583406"><div class="ttname"><a href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a></div><div class="ttdeci">imageFormat</div><div class="ttdoc">The imageFormat enum is used to identify the pixel format and colorspace of an image.</div><div class="ttdef"><b>Definition:</b> imageFormat.h:49</div></div>
<div class="ttc" id="agroup__imageFormat_html_gga931c48e08f361637d093355d64583406ac9e52255f1b44bcb0257383d948c3153"><div class="ttname"><a href="group__imageFormat.html#gga931c48e08f361637d093355d64583406ac9e52255f1b44bcb0257383d948c3153">IMAGE_UNKNOWN</a></div><div class="ttdeci">@ IMAGE_UNKNOWN</div><div class="ttdoc">Unknown/undefined format.</div><div class="ttdef"><b>Definition:</b> imageFormat.h:84</div></div>
<div class="ttc" id="astructimageFormatType_3_01IMAGE__RGB8_01_4_html_a1e9ebd00dfe3dcc70b36f9a3d286b3af"><div class="ttname"><a href="structimageFormatType_3_01IMAGE__RGB8_01_4.html#a1e9ebd00dfe3dcc70b36f9a3d286b3af">imageFormatType&lt; IMAGE_RGB8 &gt;::Base</a></div><div class="ttdeci">uint8_t Base</div><div class="ttdef"><b>Definition:</b> imageFormat.h:231</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="imageFormat_8h.html">imageFormat.h</a></li>
    <li class="footer">Generated on Tue Mar 28 2023 14:27:58 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
